
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {zhCn} from "element-plus/es/locale/index";
const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(
    ElementPlus,{
        locale: zhCn
    }
)
// 注册所有icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}


app.mount('#app')
